// stores/counter.js
import { defineStore } from 'pinia';
import { ref } from 'vue'

export const useUserStore = defineStore('user', () => {
	const user = ref({
		account: '',
		username: '张三',
		token: ''
	})
	return { user }
}, {
	persist: {
		storage: {
			getItem: uni.getStorageSync,
			setItem: uni.setStorageSync
		}
	}
});